ProfilePress\Core\Membership\Models\Subscription\SubscriptionEntity C

Total Complexity 118
Dependencies 16
Dependents 10
Total lines 811
Lines of code 395
Logical lines of code 210
Comment lines 170
Methods 53
Properties 18

Methods 53

Method Rating Maintainability Complexity Lines of code
renew()
A
45 10 43
is_active()
A
53 9 22
expire()
A
56 8 16
is_expired()
S
53 7 21
__construct()
S
60 7 12
cancel()
S
58 6 15
maybe_complete_subscription()
S
67 4 8
enable_subscription_trial()
S
60 3 13
activate_subscription()
S
60 3 13
update_meta()
S
56 2 19
complete()
S
68 3 7
get_subscription_terms()
S
61 2 13
update_status()
S
62 2 11
has_trial()
S
79 2 3
get_formatted_expiration_date()
S
68 2 7
is_lifetime()
S
78 2 3
get_last_order()
S
63 2 10
can_cancel()
S
75 2 4
add_plan_role_to_customer()
S
64 2 9
save()
S
64 2 10
get_initial_tax_rate()
S
79 2 3
get_recurring_tax()
S
79 2 3
get_recurring_tax_rate()
S
79 2 3
remove_plan_role_from_customer()
S
64 2 9
get_initial_tax()
S
79 2 3
get_meta_flag_id()
S
79 1 3
update_profile_id()
S
79 1 3
get_times_billed()
S
67 1 8
get_meta()
S
65 1 10
add_renewal_order()
S
68 1 8
get_all_orders()
S
71 1 6
get_status_label()
S
80 1 3
add_note()
S
71 1 5
get_customer_id()
S
80 1 3
get_id()
S
80 1 3
is_pending()
S
80 1 3
is_cancelled()
S
80 1 3
is_completed()
S
80 1 3
is_recurring()
S
80 1 3
get_parent_order_id()
S
80 1 3
get_plan()
S
80 1 3
get_plan_id()
S
80 1 3
get_customer()
S
80 1 3
get_notes()
S
78 1 3
get_initial_amount()
S
81 1 3
get_recurring_amount()
S
81 1 3
get_total_payments()
S
80 1 3
get_completed_order_count()
S
71 1 6
get_profile_id()
S
78 1 3
get_status()
S
78 1 3
exists()
S
80 1 3
get_payment_method()
S
80 1 3
delete_meta()
S
65 1 9